var ScriptInfo = {
	"filename" : "random_script.js",
	"title" : "Random Test Script",
	"author" : "alogwe",
	"version" : "0.1",
	"description" : "Used for testing Engine.load() core API",
	"notes" : "none"
};

// Wraps Console.write(...);
function print() {
	//	Prepend ScriptInfo.filename to the provided arguments;
	var args = [ "Script [" + ScriptInfo.filename + "] -> " ]
			.concat(Array.prototype.slice.call(arguments));
	return Console.write.apply(this, args);
};

function loopNumbers(nLow, nHigh, nStep) {
	var a = nLow || 0;
	var b = nHigh || 1000;
	var c = nStep || 20;

	print("Starting loopNumbers() with a=", a, ", b=", b, ", c=", c);
	for (; a < b; a += c) {
		print("\ta:[", a, "]\tb:[", b, "]\tc:[", c, "]");
	}

	print("End of loopNumbers()");
	return true;
};

function main() {
	//	Define and execute a random long-running function which prints data to console;
	//	Purpose of this is to show multiple threads writing to console simultaneously;
	loopNumbers(0, 404622, 220);
	return true;
};